import request from '@/utils/request'

export function addProp(data) {
  return request({
    url: '/juanbusiness/product-spu/add',
    method: 'post',
    data
  })
}

export function findProp(page, size) {
  return request({
    url: '/juanbusiness/product-spu/findPage',
    method: 'get',
    params: { page: page, size: size }
  })
}

export function editProp(data) {
  return request({
    url: '/juanbusiness/product-spu/edit',
    method: 'put',
    data
  })
}

export function detailProp(id) {
  return request({
    url: '/juanbusiness/product-spu/get',
    method: 'get',
    params: {id: id}
  })
}

export function delProp(id) {
  return request({
    url: '/juanbusiness/product-spu/del',
    method: 'delete',
    params: {id: id}
  })
}
